package com.link.base.base.common.dao.mybatis.mapper;

import com.link.base.base.common.model.Announce;
import com.link.base.base.common.model.Attachment;
import com.link.base.base.common.model.InterObject;
/**
 * Copyright  hande Company. All Rights Reserved.
 *
 * @author  unknwon
 * @date:   2018/11/9 11:11
 * @version 1.0
 */

public interface InterObjectMapper {

    /**
     * 插入公告附件表
     * @param  record
     * @throws Exception
     */
    public void announceAttachInsert(InterObject record) throws Exception;


    /**
     * 通过公告Id删除中间表的记录
     *
     * @param record
     * @throws Exception
     */
    public void deleteAnnounceAttachByAnnounceId(Announce record) throws Exception;

    /**
     * 根据附件id删除中间表记录
     *
     * @param record
     * @throws Exception
     */
    public void deleteAnnounceAttachByAttachId(Attachment record) throws Exception;

}
